package com.dlry.serviceImpl;

import java.util.List;

import com.dlry.entity.DlLeave;
import com.dlry.entity.DlLeaveflow;
import com.dlry.exception.UserNotFoundException;

public interface LeaveFlowService {
	// 开始流程
	void startWorkFlow(DlLeave leave) throws UserNotFoundException;

	// 执行下一流程
	void nextWorkFlow(Long fId) throws UserNotFoundException;

	// 驳回流程
	void rejectWorkFlow(Long fId);

	// 流程结束
	void finishWorkFlow(Long fId);

	// 撤销流程
	void revokeWorkFlow(Long fId);

	// 通过id获取流程
	List<DlLeaveflow> findFlows(Long ltId);

	// 获取需要审批的流程
	List<DlLeaveflow> findFlowings(Long hid);
}
